//
//  boss.m
//  ShoutBoss
//
//  Created by Luck Mstone on 6/15/09.
//  Copyright 2009 MS. All rights reserved.
//

#import "Boss.h"
#import "cocos2d.h"
#import "Constants.h"


@implementation Boss

-(id) init
{
	self = [super init];
	if(self != nil){		
		//初始化工作...
		
		//添加Boss图片
		Sprite *head = [Sprite spriteWithFile:@"bosshead.png"];
		head.position = ccp(- head.contentSize.width/2, 50);
		[self addChild:head z:2 tag:kTagBossHead];
		
		Sprite *body = [Sprite spriteWithFile:@"bossbody.png"];
		body.position = ccp(- body.contentSize.width/2, 0);
		[self addChild:body z:1 tag:kTagBossBody];
		
		//self.transformAnchor = ccp(-240 - body.contentSize.width/2, -140);
	}
	
	return self;
}

@end
